<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
   <head>
      <title>Bootstrap 模板</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
      <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
      <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
 
      <!-- HTML5 Shiv 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
      <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
      <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
      <![endif]-->
   </head>

	<body>
		<div class="container">
			<h1>模拟渠道路由</h1>
			<div>
				<ul>规则：
					<li>单笔金额达到10W - AWX</li>
					<li>交割类型选择T1 - BC</li>
					<li>EUR/GBP - CC</li>
					<li>其他 - AWX</li>
				</ul>
				
			</div>
			
			<form role="form" action="/exRule" method="post">
				<div class="form-group">
					<label class="control-label">源币种：</label>
					<input name="sourceCur" type="text" class="form-control" required 
						th:value="${trans.sourceCur}">
				</div>
				<div class="form-group">
					<label class="control-label">目标币种：</label>
					<input name="targetCur" type="text" class="form-control" required 
						th:value="${trans.targetCur}">
				</div>
				<div class="form-group">
					<label class="control-label">金额：</label>
					<input name="amt" type="number" class="form-control" required 
						th:value="${trans.amt}">
				</div>
				<div class="form-group">
					<label class="control-label">交割类型：</label>
					<select name="conversionType" class="form-control" required>
						<option value="">请选择</option>
						<option value="T0" th:selected="${trans.conversionType=='T0'}">T0</option>
						<option value="T1" th:selected="${trans.conversionType=='T1'}">T1</option>
					</select>
				</div>
				
				<div class="form-group">
					<button type="submit" class="btn btn-primary">提交</button>
					<button type="reset" class="btn">重置</button>
				</div>
				
				<div class="form-group">
					<label class="control-label">路由渠道：</label>
					<input name="channelCode" type="text" class="form-control" readonly 
						th:value="${trans.channelCode}">
				</div>
		</form>
		</div>
	</body>
</html>